package com.qys.livesMall.app.user.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author
 * @since 2023-07-31
 */
@Getter
@Setter
@TableName("h2_limit_url")
@Schema(name = "LimitUrl", description = "")
public class LimitUrl implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "用户权限接口配置")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "相对路径")
    private String uri;

    @Schema(description = "权限名")
    private String limitName;

    @Schema(description = "是否删除 （1：已删除 ，0：未删除）")
    @TableLogic
    private Byte deleted;

    @Schema(description = "状态（0：开启  1 ：关闭）")
    private Byte status;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "1：用户行为   2：店铺行为   3：主播行为")
    private Byte type;

}
